package com.woniu.money.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.money.bean.TFinance;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yellowDocter
 * @since 2022-08-09
 */
public interface TFinanceMapper extends BaseMapper<TFinance> {
    //应收账务,页面展示,分页,查询
    Page<TFinance> getAll(Page page,
                          @Param("orderId") Integer orderId, @Param("username")String username,
                          @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);



    //回单
    List<TFinance> seltt(@Param("orderId") Integer orderId, @Param("username")String username);

    List<TFinance> sel();

    //修改状态
    int up(@Param("financeId") Integer financeId,@Param("state") Integer state);
};


